<?php 
$j100=array(2,3,12,16);
foreach ($j100 as $v){
    echo "INSERT INTO `ling_log` (`id`, `jid`, `name`) VALUES (NULL, '".$v."', '100');";
    echo "<br />";
}
echo "<br />";


echo "INSERT INTO `ling_log` (`id`, `jid`, `name`) VALUES (NULL, '5', '2');";